import request from '@/utils/request'

// 查询学生库列表
export function listSchoolStudent(query) {
  return request({
    url: '/system/schoolStudent/list',
    method: 'get',
    params: query
  })
}

// 查询学生库详细
export function getSchoolStudent(id) {
  return request({
    url: '/system/schoolStudent/' + id,
    method: 'get'
  })
}

// 查询学生库数据
export function getSchoolStudentData(query) {
  return request({
    url: '/system/schoolStudent/getData',
    method: 'get',
    params: query
  })
}

// 新增学生库
export function addSchoolStudent(data) {
  return request({
    url: '/system/schoolStudent',
    method: 'post',
    data: data
  })
}

// 修改学生库
export function updateSchoolStudent(data) {
  return request({
    url: '/system/schoolStudent',
    method: 'put',
    data: data
  })
}

// 删除学生库
export function delSchoolStudent(id) {
  return request({
    url: '/system/schoolStudent/' + id,
    method: 'delete'
  })
}

// 学生导入 上传路径
export function getImportUrl(){
  return "/system/schoolStudent/importData";
}

// 学生导入 模板下载
export function getImportTemplateUrl(){
  return 'system/schoolStudent/importTemplate';
}
